$f: 19.2;

.home {
  position: relative;
  width: 100%;
  overflow: hidden;
  .banner {
    position: relative;
    .position_img{
      position: absolute;
      width: 743/$f+vw;
      right: -18/$f+vw;
      bottom: -152/$f+vw;
      z-index: 2;
      height: 472/$f+vw;
      img{
        width: 100%;
        height: 100%;
      }
    }
    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, .4);
    }

    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 100vh;
    }

    .text {
      position: absolute;
      left: 12vw;
      top: 220/$f+vw;
      z-index: 10;
      width: 887/$f+vw;

      .links {
        display: flex;

        a,
        p,
        span {
          color: rgba(255, 255, 255, .6);
          font-size: 24/$f+vw;
          text-transform: uppercase;
        }

        a {
          transition: all 600ms;

          &:hover {
            color: #E60012;
          }
        }

        span {
          margin: 0 1vw;
        }
      }

      .t1 {
        color: #FFF;
        font-size: 20/$f+vw;
        margin: 62/$f+vw 0 32/$f+vw 0;

        &::after {
          display: block;
          width: 174/$f+vw;
          height: 4/$f+vw;
          background: #E60012;
          content: '';
          margin-top: 5px;
        }
      }

      .t2 {
        font-size: 64/$f+vw;
        color: white;
        font-weight: 700;
        text-transform: uppercase;
      }

      .des {
        color: #FFF;
        font-size: 20/$f+vw;
        line-height: 1.6;
        margin-top: 76/$f+vw;
      }
    }
  }

  .main {
    margin: 120/$f+vw 200/$f+vw;

    .t {
      color: rgba(26, 32, 44, 1);
      font-size: 64/$f+vw;
      font-weight: 600;

      &::before {
        width: 113/$f+vw;
        height: 4/$f+vw;
        content: '';
        display: block;
        background: #E60012;
        margin-bottom: 36/$f+vw;
      }
    }

    .allItems{
      display: flex;
      flex-wrap: wrap;
      width: 103.2%;
      margin-left: -1.6%;
      margin: 80px 0 0 0;
      a{
        display: block;
        width: 31%;
        background-color: white;
        margin-left: 1.6%;
        margin-top: 3vw;
        .pic{
          overflow: hidden;
          img{
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }
        .name{
          color: #000;
          font-size: 24/$f+vw;
          text-transform: uppercase;
          text-align: center;
          margin: 1.5vw 0;
          transition: all 600ms;
        }
        .more{
          width: 48/$f+vw;
          height: 48/$f+vw;
          position: relative;
          text-align: center;
          margin: auto;
          overflow: hidden;
          svg{
            vertical-align: middle;
            transition: all 0.3s ease-out;
            width: 48/$f+vw;
            position: relative;
            left: 0;
            path{
              transition: all 600ms;
            }
            &:nth-child(2) {
              position: absolute;
              left: -48/$f+vw;
              top: 0;
            }
          }
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
          .name{
            color:#E60012;
          }
          .more{
            svg{
              &:first-child{
                left: 48/$f+vw;
              }
              &:nth-child(2) {
                left: 0px;
              }
              //transform: translateY(10px);
              path{
                //stroke: #E60012;
              }
            }
          }
        }
      }
    }

    .section1{
      padding: 120/$f+vw 0;
      *{
        box-sizing: border-box;
      }
      .content{
        width: 99vw;
        overflow: hidden;
        margin: 139/$f+vw 0 0 0;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        .button{
          position: absolute;
          width: 100vw;
          left: 50%;
          transform: translateX(-50%);
          bottom: 86/$f+vw;
          z-index: 9;
          display: flex;
          align-items: center;
          justify-content: flex-end;
          pointer-events: none;
          padding: 0 60/$f+vw 0 0;
          .circle{
            pointer-events: auto;
            cursor: pointer;
            width: 58/$f+vw;
            height: 58/$f+vw;
            border: 1px solid #D9D9D9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: .6s;
            &:not(:last-child) {
              margin: 0 30/$f+vw 0 0;
            }
            &:last-child{
              transform: rotate(180deg);

            }
            svg{
              width: 29/$f+vw;
              height: 29/$f+vw;
              path{
                stroke: #D9D9D9;
                transition: .6s;
              }
            }
            &:hover{
              background: #E60012;
              svg{
                path{
                  stroke: #fff;
                }
              }
            }
          }

        }
        .induSwiper{
          width: 120vw;
          position: relative;
          left: 50%;
          transform: translateX(-50%);
          .swiper-wrapper{
            position: relative;
            left: -13vw;
          }
          .swiper-slide{
            //position: relative;
            //left: -13vw;
            padding: 10/$f+vw 0;
            &.swiper-slide-active{
              .img{
                background: #D9D9D9;
                box-shadow: 0 0 10px rgba(0,0,0,.2);
              }
              .text{
                opacity: 1;
              }
            }
          }
          .item{
            width: 100%;
            display: block;
            .img{
              width: 100%;
              transition: .6s;
              margin: 0 0 30/$f+vw;
              img{
                width: 100%;
              }
            }
            .text{
              display: flex;
              align-items: center;
              justify-content: space-between;
              opacity: 0;
              transition: 1s;
              p{
                color: #E60012;
                font-size: 40/$f+vw;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                text-transform: uppercase;
              }
              svg{
                width: 48/$f+vw;
                height: 48/$f+vw;
              }
            }
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .position_img{
        width: 70%;
        height: auto;
        bottom: 8%;
      }
      .text{
        left: 5%;
        top:60px;
        width: 90%;
        .links{
          a,p,span{
            font-size: 16px;
          }
        }
        .t1{
          font-size: 16px;
          margin: 30px 0 15px 0;
          &::after{
            width: 50px;
            height: 2px;
          }
        }
        .t2{
          font-size: 32px;
        }
        .des{
          font-size: 16px;
          margin-top: 30px;
        }
      }
    }
    .main{
      margin: 30px 5%;
      .t{
        font-size: 32px;
        &::before{
          width: 60px;
          height: 2px;
        }
      }
      .allItems{
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
        a{
          width: 100%;
          margin-left: 0;
          margin: 0 0 30px 0;
          .name{
            font-size: 18px;
            margin: 15px 0;
          }
          .more{
            width: 30px;
            height: 30px;
            svg{
              width: 30px;
              &:nth-child(2) {
                position: absolute;
                left: -30px;
                top: 0;
              }
            }
          }
          &:hover{
            .more{
              svg{
                &:first-child{
                  left: 30px;
                }
                &:nth-child(2) {
                  left: 0px;
                }
              }
            }
          }
        }
      }
      .section1{
        padding: 50px 0;
        .content{
          padding: 0 0 80px;
          .button{
            padding: 0 5% 0 0;
            bottom: 0;
            .circle{
              width: 40px;
              height: 40px;
              &:not(:last-child) {
                margin: 0 20px 0 0 ;
              }
              svg{
                width: 20px;
                height: 20px;
              }
            }
          }
          .induSwiper{
            width: 90vw;
            .swiper-wrapper{
              left: 0;
              .swiper-slide{
                .text{
                  p{
                    font-size: 16px;
                    line-height: 1.5;
                  }
                  svg{
                    width: 30px;
                    height: 30px;
                  }
                }
              }
            }

          }
        }
      }
    }
  }
}